const mongoose = require('../config/db');
const Schema = mongoose.Schema;

module.exports = new Schema(
  {
    dateOfBirth: {
      type: Date
    },
    userId: {
      type: Schema.ObjectId,
      ref: 'user',
    }
  },
  {
    timestamps: {
      createdAt: 'created_at',
      updatedAt: 'updated_at'
    }
  }
);

